package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.trade.order.OrderTaskManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 订单任务操作SDK
 *
 * @author fk create in 2020/4/7
 * @version v2.0
 * @since v7.2.0
 */
@RestController
@RequestMapping("/client/orders/task")
@ApiIgnore
public class OrderTaskClientController{

    @Autowired
    private OrderTaskManager orderTaskManager;

    @PostMapping("/cancel")
    public void cancelTask() {
        orderTaskManager.cancelTask();
    }

    @PostMapping("/rog")
    public void rogTask() {
        orderTaskManager.rogTask();
    }

    @PostMapping("/complete")
    public void completeTask() {
        orderTaskManager.completeTask();
    }

    @PostMapping("/pay")
    public void payTask() {
        orderTaskManager.payTask();
    }

    @PostMapping("/service")
    public void serviceTask() {
        orderTaskManager.serviceTask();
    }

    @PostMapping("/comment")
    public void commentTask() {
        orderTaskManager.commentTask();
    }

    @PostMapping("/complain")
    public void complainTask() {
        orderTaskManager.complainTask();
    }
}
